package appapi.service;

import appapi.entity.Zhongjiao.StaffDto;
import appapi.entity.mqtt.Terminal;
import appapi.entity.mqtt.TerminalReq;
import appapi.entity.mqtt.Terminals;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: Ygp Work
 * @description:
 * @date: 2023-07-04 10:58
 */
public interface TerminalService extends IService<Terminal> {
    int addTerminal(Terminal terminal);

    int deleteTerminalById(String termId);

    int updateTerminal(Terminal terminal);

    List<Terminal> getTerminalById(TerminalReq req);
    Terminal getTerminalByIds(String termNo,String termTopic);

    PageInfo<Terminals> getTerminalAll(Terminals terminal);

    List<Terminal> getTerminalAlls(Terminal terminal);

    List<StaffDto> getUserall();
}
